package com.xgk.boot.module.core.dal.entity.bil;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 客户业务帐单日志
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("bil_business_bill_log")
public class BilBusinessBillLogDO extends BaseDO {


    /**
     * 自动增长列
     */
    @TableId(value = "bbbl_id", type = IdType.ASSIGN_ID)
    private Long bbblId;

    /**
     * 客户账单ID
     */
    @TableField("bbb_id")
    private Long bbbId;

    /**
     * 变化前状态
     */
    @TableField("bbbl_status_from")
    private Integer bbblStatusFrom;

    /**
     * 变化后状态
     */
    @TableField("bbbl_status_to")
    private Integer bbblStatusTo;

    /**
     * 备注
     */
    @TableField("bbbl_note")
    private String bbblNote;

    /**
     * IP地址
     */
    @TableField("bbbl_ip")
    private String bbblIp;

    /**
     * 创建人ID
     */
    @TableField("bbbl_creator_id")
    private Integer bbblCreatorId;

    /**
     * 添加时间
     */
    @TableField("bbbl_add_time")
    private Date bbblAddTime;

    @Override
    public String toString() {
        return "BilBusinessBillLog{" +
        ", bbblId = " + bbblId +
        ", bbbId = " + bbbId +
        ", bbblStatusFrom = " + bbblStatusFrom +
        ", bbblStatusTo = " + bbblStatusTo +
        ", bbblNote = " + bbblNote +
        ", bbblIp = " + bbblIp +
        ", bbblCreatorId = " + bbblCreatorId +
        ", bbblAddTime = " + bbblAddTime +
        "}";
    }
}
